/*
 * LoginDetails.java
 *
 * Created on Sep 11, 2003, 1:50 PM
 *
 * Copyright (c) 2003 The General Electric Company
 * 
 * @author Ramesh Venkitaswaran
 * 
 * @version AutoSC Octopus
 * 
 * Last modified by $Author: afaichun $ 
 * 
 * Revision Number $Revision: 1.1 $
 * 
 */
package com.ge.healthcare.autosc.common.pojo.sysInfo;

import com.ge.med.service.stp.dataaccessapi.DataItemException;
import com.ge.med.service.stp.gsccmw.clientif.*;

/**
 * Provides getters to access the login information retrieved from GSCC.
 *
 */

public class LoginDetails
{
    /**
     * The login id for logging on to the scanner
     */
    private String loginId = null;

    /**
     * Whether the loginId is a super user
     */
    private String loginType = null;

    /**
     * The password for loginId
     */
    private String password = null;

    /**
     * Default password for logging in
     */
    private String defaultPassword = null;

    /**
     * Description of login
     */
    private String description = null;

    /**
     *  Whether there is a modem password or not.
     */ 
    private Boolean isModemPassword = null;

    /**
     * For jUnit testing only.
     */
    protected LoginDetails()
    {
    }
    
    /**
     * Build up the object.
     */
    public LoginDetails ( LoginDataItem item ) throws DataItemException
    {
        loginId = item.getLoginId();
        loginType = item.getLoginType();
        password = item.getPassword();
        defaultPassword = item.getDefaultPassword();
        description = item.getDescript();
        isModemPassword = item.isModemPassword();
    }

	/**
	 * @return Login ID
	 */
    public String getLoginId()
    {
        return loginId;
    }

	/**
	 * @return  Type of login (Insite User, CT user) etc.
	 */
    public String getLoginType()
    {
        return loginType;
    }

	/**
	 * @return Password for loginID.
	 */
    public String getPassword()
    {
        return password;
    }

	/**
	 * @return  Default Password.
	 */
    public String getDefaultPassword()
    {
        return defaultPassword;
    }
    
	/**
	 * @return  Description of the login ID.
	 */
    public String getDescription()
    {
        return description;
    }

	/**
	 * @return Whether as modem password is present or not.
	 */
    public Boolean isModemPassword()
    {
        return isModemPassword;
    }
}
